#!/bin/bash
while true
do
a=`gitlab-ctl status | grep 'down'`
if [ a != '' ];then
  systemctl stop keepalived
fi
sleep 5
done